﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public class _Venue : _OpenEvent
{
    public _Venue()
    {
        // Default Constructor
    }

    public _Venue(string eventName, string venueName)
    {
        // Custom Constructor used to populate data from the database.
        WebServiceApplication.WebService webService = new WebServiceApplication.WebService();
        _Venue data = webService.getSearchedVenue(eventName, venueName);
        if (data != null)
        {
            this.dateStart = data.dateStart;
            this.dateEnd = data.dateEnd;
            this.venueAvailable = data.venueAvailable;
            this.venueName = data.venueName;
            this.city = data.city;
            this.state = data.state;
        }
    }

    // Variables
    public DateTime dateStart { get; set; }
    public DateTime dateEnd { get; set; }
    public bool venueAvailable { get; set; }
    public string venueName { get; set; }
    public string city { get; set; }
    public string state { get; set; }
}
